home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / ALL95.LZH / transcript_1215 / partx-sun-attachment49 < prev    next >
Encoding:
Text File  |  1995-12-18  |  1.1 KB  |  33 lines

  1. ----------
  2. X-Sun-Data-Type: text
  3. X-Sun-Data-Description: text
  4. X-Sun-Data-Name: text
  5. X-Sun-Content-Lines: 23
  6.  
  7. Hi,
  8.  
  9. I've written a simple screen-grab piece of code, which slots in, and saves a
  10. .TGA (type 2) whenever you press the * on the numeric keypad. This should make
  11. it a lot easier to grab pictures for the WWW page etc.
  12.  
  13. Every time you press it, you get another file (GRAB_000.TGA, GRAB_001.TGA...).
  14. However, it will over-write it if the file already exists, so rename the
  15. files after each grabbing session...
  16.  
  17. For some reason, it seems to save more than the screen (I'd assumed that the
  18. screen would be screenwidth x scanlines, but this doesn't seem to be true),
  19. so you may have to clip the images...
  20.  
  21. At the bottom of this mail is hopefully the modified version of Laurent`s
  22. code (macros.s for the file write macros, doom.s for the keyboard equate/include
  23. scrngrab.s, dview_io.s for the testing of keyboard, and scrngrab.s contains
  24. the actual code), as well as an assembled version (which does NOT load the
  25. sample that is not found in Doom 1 shareware).
  26.  
  27. Anyone is free to improve it etc. (Its rather slow, but who cares...)
  28.  
  29. Anthony 
  30. ----------
  31. end
  32.  
  33.